package one.stand.service;

import one.stand.model.ResultModel;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author Administrator
 */
public interface OssService {


    /**
     * 文件上传
     *
     * @return
     */
    ResultModel<String> upload(MultipartFile file) throws IOException;

    /**
     * 多文件上传
     * @param files
     * @return
     * @throws IOException
     */
    ResultModel<List<String>> upload(MultipartFile[] files) throws IOException;


}
